-
Notifications
You must be signed in to change notification settings - Fork 566
feat(storage): setting default checksum #32411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat(storage): setting default checksum #32411
Conversation
894976e to
8a69368
Compare
google-cloud-storage/test/helper.rb
Outdated
| # If no checksum type or specific value is provided, the default will be set to crc32c. | ||
| # If the checksum is set to false, it will be disabled. | ||
| if [checksum, crc32c, md5].all?(&:nil?) || checksum == true | ||
| crc32c = Google::Cloud::Storage::File::Verifier.crc32c_for(StringIO.new("Hello world")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the string "Hello world" also be passed as a parameter for robustness?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed this method to receive content
we are not removing the static content completely as many tests are still using it
This pull request introduces a significant enhancement to the Google Cloud Storage Ruby client by establishing CRC32c as the default checksum for file uploads. This change ensures that data integrity is automatically verified for uploads where a checksum isn't explicitly specified, thereby improving the reliability of data handling.
Highlights
checksumparameter inbucket.rbhas been updated to clearly state thatcrc32cis now the default.Note: Opening this PR as older PR was getting corrupted